package com.zf.shuashua.bean;

import android.text.TextUtils;

import androidx.annotation.NonNull;

import java.io.Serializable;

/**
 * 广告数据上报
 */
public class AdvertReport implements Serializable {

    public enum EventType {
        VideoStart("video_start"),
        VideoPause("video_pause"),
        VideoStop("video_stop"),
        VideoEnd("video_end"),
        ImageShow("image_show"),
        VideoClick("video_click"),
        ImageClick("image_click");

        private String type;

        EventType(String type) {
            if (TextUtils.isEmpty(type)) {
                throw new RuntimeException("Name can not be empty!");
            }
            this.type = type;
        }

        @NonNull
        @Override
        public String toString() {
            return type;
        }
    }

    //广告计划id
    private int plan_id;
    //请求唯一id
    private String uuid;
    //执行事件, video_start;video_pause;video_end; image_show; video_click; image_click
    private EventType event;
    //1.安卓，2.ios
    private int client;
    //广告位，1.开屏 2.信息流 3.签到 4.看视频 5.开启自动播放
    private String type;

    public int getPlan_id() {
        return plan_id;
    }

    public void setPlan_id(int plan_id) {
        this.plan_id = plan_id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public EventType getEvent() {
        return event;
    }

    public void setEvent(EventType event) {
        this.event = event;
    }

    public int getClient() {
        return client;
    }

    public void setClient(int client) {
        this.client = client;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}